Skip to main content
16-Pearl
October 14, 2024
Solved

How to fetch 7 update scheduletime of scheduler using services?

  • October 14, 2024
  • 2 replies
  • 2106 views

1. How to fetch scheduletime of scheduler using services?

2. How to update scheduletime of scheduler using services

AP_10343008_0-1728912371156.png

 

Best answer by Rocko
// 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;

2 replies

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
October 14, 2024
// 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;
16-Pearl
October 30, 2024

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.

18-Opal
October 30, 2024

Try to restart the scheduler thing after the update.

Rocko
19-Tanzanite
October 14, 2024
16-Pearl
October 23, 2024

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 ?

Rocko
19-Tanzanite
October 23, 2024

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/