Skip to main content
16-Pearl
Oct 14, 2024 1:26 PM UTC
Solved

How to fetch 7 update scheduletime of scheduler using services?

1. How to fetch scheduletime of scheduler using services?

2. How to update scheduletime of scheduler using services

AP_10343008_0-1728912371156.png

 

Rocko
RockoAnswer
19-Tanzanite
Oct 14, 2024 3:08 PM UTC
// getting the config table
let table=Things["sched1"].GetConfigurationTable({tableName:"Settings"});

// setting the value
table.schedule="0 4 0/1 * * ?";
Things["sched1"].SetConfigurationTable({
	tableName: "Settings", configurationTable: table,
});

// returning the value
result=Things["sched1"].GetConfigurationTable({tableName:"Settings"}).schedule;

10 replies

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
Oct 14, 2024 3:08 PM UTC
// getting the config table
let table=Things["sched1"].GetConfigurationTable({tableName:"Settings"});

// setting the value
table.schedule="0 4 0/1 * * ?";
Things["sched1"].SetConfigurationTable({
	tableName: "Settings", configurationTable: table,
});

// returning the value
result=Things["sched1"].GetConfigurationTable({tableName:"Settings"}).schedule;
Translate
16-Pearl
Oct 30, 2024 12:10 PM UTC

If I updated the value "0 44 11 ? * WED" for scheduled time through service, subscription is not triggering automatically. But If i manually update scheduler with the same  scheduled time "0 44 11 ? * WED" subscription is triggering automatically. What is the issue.

Translate
18-Opal
Oct 30, 2024 12:14 PM UTC

Try to restart the scheduler thing after the update.

Translate
Rocko
19-Tanzanite
Oct 14, 2024 3:19 PM UTC

it's also documented here https://www.ptc.com/en/support/article/CS399188

 

Translate
16-Pearl
Oct 23, 2024 11:04 AM UTC

How to find the services of Datashapes, Projects, ModelTags services quickly? Any documentation is there to go through all of these services in one go ?

Translate
Rocko
19-Tanzanite
Oct 23, 2024 11:14 AM UTC

Not sure what you mean. That is what the Services tab is for?

Plus you can consult the API documentation: http://support.ptc.com/help/thingworx_hc/javadoc/

 

Translate