Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/bump to version1 6 #44

Open
wants to merge 37 commits into
base: WebServicesAPIv1.6
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
5607366
update local repository
moldypenguins Sep 12, 2019
7413d54
remove files
moldypenguins Sep 12, 2019
37a31bc
fix build issue
moldypenguins Sep 12, 2019
a949a10
fix error handling for create/update
moldypenguins Sep 12, 2019
9e6d2f0
Merge pull request #41 from moldypenguins/master
Sep 18, 2019
f235aa4
Add .gitignore
taylorghall Nov 13, 2019
bc724cb
Updates
taylorghall Nov 13, 2019
caf2fb0
Renamed
taylorghall Nov 13, 2019
371cb5b
Update To Release
taylorghall Nov 15, 2019
d302537
Update Tags
taylorghall Nov 15, 2019
452ed57
Updated Entities for Additional Fields
taylorghall Dec 6, 2019
31a0248
Fixed Creation
taylorghall Dec 6, 2019
c2302d7
Update Contact and ContractNotes
taylorghall Mar 11, 2020
129db9f
Updated Recent Entities
taylorghall Dec 4, 2020
9082560
Update AutotaskNetCore
datablyinc Mar 30, 2021
e252351
Update
datablyinc Apr 23, 2021
0db149b
update ticket to use reflection
datablyinc Apr 23, 2021
fe5a33d
remove extra files
datablyinc Apr 23, 2021
51bb4a7
Update Gitignore
datablyinc Apr 23, 2021
ace7777
Remove from repo
datablyinc Apr 23, 2021
48ba3c8
fix issues
Apr 23, 2021
76f2260
update assembly info
Apr 23, 2021
562a9da
update ticket types
Apr 29, 2021
0f0974c
assembly
Apr 29, 2021
19aef89
double to decimal
Apr 29, 2021
d15c306
version
Apr 29, 2021
b11d51c
6
Apr 29, 2021
bdd47bc
Update Contract from Long to Int
datablyinc May 25, 2021
cf8efd6
UPdate AttachmentInfo
datablyinc Jun 22, 2021
3606124
Update again - remove console log
datablyinc Jun 22, 2021
458c1b3
get and create attachments
Jun 22, 2021
e3468fb
update package version
Jun 22, 2021
8c7467a
Update AutotaskNet to take images
datablyinc Aug 11, 2021
2cb8c7c
Merge branch 'master' of https://github.com/taylorghall/AutotaskNetCo…
datablyinc Aug 11, 2021
2a47284
Update AutotaskNet.CS
datablyinc Feb 3, 2022
62843ca
Bump to version 1.6
datablyinc Feb 7, 2022
d360097
Fix App.Config
datablyinc Feb 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix error handling for create/update
moldypenguins committed Sep 12, 2019

Unverified

This user has not yet uploaded their public signing key.
commit a949a1087b27c4861eed70d1b8987b746e8f431d
Binary file modified .vs/AutotaskNET/v15/.suo
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
9 changes: 6 additions & 3 deletions AutotaskNET/AutotaskNET.cs
Original file line number Diff line number Diff line change
@@ -124,9 +124,12 @@ public void Connect(string username, string password)
query.Append("</query>");
query.Append("</queryxml>");


//Console.WriteLine(query.ToString());

//submit query
net.autotask.webservices.ATWSResponse response = this._atws.query(query.ToString());

//parse response
if (response.ReturnCode > 0 && response.EntityResults.Length > 0)
{
@@ -216,7 +219,7 @@ public Entities.Entity Create(Entities.Entity entity)

//create entity
net.autotask.webservices.ATWSResponse resp = this._atws.create(new net.autotask.webservices.Entity[] { typedEntity });
if (resp.Errors.Length > 0 && resp.EntityReturnInfoResults.Length > 0)
if (resp.Errors.Length > 0 && resp.EntityReturnInfoResults.Length <= 0)
{
throw new AutotaskNETException(string.Join("\r\n", resp.Errors.Select(r => r.Message)));
}
@@ -257,7 +260,7 @@ public Entities.Entity Update(Entities.Entity entity)

//update entity
net.autotask.webservices.ATWSResponse resp = this._atws.update(new net.autotask.webservices.Entity[] { typedEntity });
if (resp.Errors.Length > 0 && resp.EntityReturnInfoResults.Length > 0)
if (resp.Errors.Length > 0 && resp.EntityReturnInfoResults.Length <= 0)
{
throw new AutotaskNETException(string.Join("\r\n", resp.Errors.Select(r => r.Message)));
}
4 changes: 2 additions & 2 deletions AutotaskNET/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.12.0.0")]
[assembly: AssemblyFileVersion("0.12.0.0")]
[assembly: AssemblyVersion("0.13.0.0")]
[assembly: AssemblyFileVersion("0.13.0.0")]
[assembly: NeutralResourcesLanguage("en-CA")]

Binary file modified AutotaskNET/bin/Debug/AutotaskNET.dll
Binary file not shown.
Binary file modified AutotaskNET/bin/Debug/AutotaskNET.pdb
Binary file not shown.
Binary file modified AutotaskNET/obj/Debug/AutotaskNET.dll
Binary file not shown.
Binary file modified AutotaskNET/obj/Debug/AutotaskNET.pdb
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions AutotaskTEST/Program.cs
Original file line number Diff line number Diff line change
@@ -27,8 +27,8 @@ static void Main(string[] args)

Console.WriteLine($"{DateTime.Now.ToLongTimeString()}\tConnected.");
Console.WriteLine();



#region Accounts

//Account Locations
@@ -146,7 +146,7 @@ static void Main(string[] args)

#endregion //Contacts


/*

//Entity Information
Binary file modified AutotaskTEST/bin/Debug/AutotaskNET.dll
Binary file not shown.
Binary file modified AutotaskTEST/bin/Debug/AutotaskNET.pdb
Binary file not shown.
Binary file modified AutotaskTEST/bin/Debug/AutotaskTEST.exe
Binary file not shown.
Binary file modified AutotaskTEST/bin/Debug/AutotaskTEST.pdb
Binary file not shown.
Binary file not shown.
Binary file modified AutotaskTEST/obj/Debug/AutotaskTEST.exe
Binary file not shown.
Binary file modified AutotaskTEST/obj/Debug/AutotaskTEST.pdb
Binary file not shown.