Discussion posts and replies are publicly visible
I'm not aware of a way to do it within a single node, but perhaps you could do it using a gateway instead? You could two separate nodes that each point to different constants you want to update and have a gateway that uses your logic to decide which to execute.
Thanks for replaying Peter Lewis I know i could do it like that but in my case i will manage around 30 companies and that would be a lot of work i have to get token for all of them that´s why i wanted to do it this way
If you're going to have that many items, I'd suggest creating a database table to manage the items instead of 30 constants. Then you can set up a value for each of your companies and just use a write to data store to update them whenever you need to.
Assuming you have access to the Content Tools plug-in, you should be able to pass a constant name and grab its UUID and then its Object ID using a combination of rules. I'd suggest you encapsulate this in an expression rule for the sake of error handling, but here it is at its core:
extract( getcontentdetailsbyuuid( getconstantorruleuuidbyname("TEST_CONSTANT_NAME") ), "Id: ", ", Parent:" )
Thanks a lot
Thanks a lot!