Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I ran AddOrUpdateAlert() code through a service in order to create an alert progamatically
the code is taken from ptc page Digital Media Publisher
Hi Jugal Shah,
Try following: After running the Alert Creation service ; close your Thing entity (do not click the save button) and reopen it again.
Based on the information shared by you; it seems that Alert is created. It's just that your composer is not refreshed.
If it still not work. Share your entities and I can have a look.
thank you it worked
but I have to manually close a thing
In my scenario in a service I am iterating over a infotable (each row of infotable represents a different thing) and for each row I will be creating a alert
which means I am creating an alert for many things
Thus before running the service I have to make sure I close all the things in the infotable
Instead of manually closing it is it possible to problematically close a thing?
Hi Jugal Shah,
We actually don't need to close the Thing. Saving the entity after running the service is overriding the changes done by service (in the background).
Just refresh the composer after running the service to load the latest entity data from the background. Make sure NOT to click save button before the refresh.
can I refresh the composer programatically
rather than maually?
I thing this can be consider a bug in thingworx know?
so Where can I raise a bug ?