Search found 23 matches
- Mon Feb 26, 2024 5:40 pm
- Forum: Server
- Topic: CurrentSessionToken is null
- Replies: 6
- Views: 1277
Re: CurrentSessionToken is null
Is this code in a server package or something else? Is there a code snippet you could share?
- Tue Jan 30, 2024 11:45 am
- Forum: Automation Code Snippets
- Topic: Code Snippet to Uncheck the Display on Order Open checkbox on notes
- Replies: 4
- Views: 1627
Re: Code Snippet to Uncheck the Display on Order Open checkbox on notes
I was only mentioning the Task context because the screenshot of your automation process shows it is triggered by "First time a task is added or updated". Since your script is triggered by a Task, the Context object will be set to the Task that was added or updated. If you want to get to t...
- Mon Jan 29, 2024 9:25 pm
- Forum: Server
- Topic: Issue creating a scheduled task
- Replies: 3
- Views: 2251
Re: Issue creating a scheduled task
Yes. To check your trigger has already been created, check the [core].[Trigger] table for a row where the Handler column matches the id of your ITriggerHandler. If it exists, then your trigger is already created and you should not create it again.
- Mon Jan 29, 2024 8:58 pm
- Forum: Integration Development
- Topic: Running Scheduled Tasks in Service Package
- Replies: 3
- Views: 2145
Re: Running Scheduled Tasks in Service Package
The IScheduledTrigger object has a property. Have you tried using that?
- Mon Jan 29, 2024 8:55 pm
- Forum: Server
- Topic: Load Server Package Settings into Database
- Replies: 5
- Views: 1736
Re: Load Server Package Settings into Database
You can access the attributes for your server package by getting the IServiceEntry for your package from the IRegistration service, and then accessing the Attribute collection. Here is an example of iterating through all the attributes for a server package. IServiceEntry serviceEntry1 = registration...
- Mon Jan 29, 2024 3:09 pm
- Forum: Automation Code Snippets
- Topic: Code Snippet to Uncheck the Display on Order Open checkbox on notes
- Replies: 4
- Views: 1627
Re: Code Snippet to Uncheck the Display on Order Open checkbox on notes
The automation scripts run in the background on the server after order is saved. Because of this, there is no way for them to interact with the user interface. However, there is a way to control whether or not a note is displayed when the order is opened. Since your script is triggered by a Task bei...
- Fri Jan 26, 2024 5:00 pm
- Forum: Server
- Topic: Load Server Package Settings into Database
- Replies: 5
- Views: 1736
Re: Load Server Package Settings into Database
Are you trying to create your own server package?
- Fri Jan 26, 2024 11:54 am
- Forum: Automation Code Snippets
- Topic: Settlement Date format in a code snippet
- Replies: 3
- Views: 1743
Re: Settlement Date format in a code snippet
To format SettlementDate you need to call ToString(). If you don't pass any parameters it will print the date and time including the seconds. You can also pass any .NET DateTime standard or custom format string into the ToString() call to change the format. Here are some examples: # output looks lik...
- Fri Jan 26, 2024 10:13 am
- Forum: Integration Development
- Topic: Error opening orders created before SPS version upgrade. Could not load file or assembly 'SoftPro.EntityModel' ...
- Replies: 4
- Views: 1741
Re: Error opening orders created before SPS version upgrade. Could not load file or assembly 'SoftPro.EntityModel' ...
Sorry, I looked at this issue with several of my teammates but due to its complexity, it is out of scope for this forum.
Our support team has opened a new ticket for this issue and they will be reaching out to you.
Our support team has opened a new ticket for this issue and they will be reaching out to you.
- Thu Jan 25, 2024 12:29 pm
- Forum: Automation Code Snippets
- Topic: Adding notes to a task
- Replies: 1
- Views: 1743
Re: Adding notes to a task
Yes, Context.Root is used to access the order that the Task belongs to. From there you can access properties on the order. An example is below. from System import * from SoftPro.ClientModel import * from SoftPro.Select.Client import * from SoftPro.OrderTracking.Client.Orders import * def AddNote(): ...