Im writing a AIP logic function that does the following
- Get list of all complaints related to a topic from complaints object
- Find all specialist who are experts in that specific top using a search object query and link traversal
- Then I query the calender for the N specilaist to find of if there is a timeslot where they can work on the complaint
- Once I found the specialist and the time, I need to create two objects in two diffent object types 1/Trouble Ticket 2/ individual schedule. I created Action on these two differnt object types.
Based on my understanding, to persist records that are created using AIP logic where we are creating completely new records, we need to write a action on the object and then call the action Via workshop to trigger the action which in inturn persist the ontology edits.
But in my case my AIP logic is supposed to edit two ontology object types.
Does this mean I need to create action on two diffrent objects ? Not clear how to achive this where I Can create a Workshop app that I can use to edit two objects using AIP logic.
The “Make Ontology edits using Logic functions” section of the documentation should help here!
There are three different Actions in the set up you described:
- The Action that is backed by the Logic function you published.
- The “create specialist schedule” Action.
- The “assign specialist to ticket” Action.
Your Logic function can have two “Apply Action” blocks that calls (2) and (3). For it to show up as an Action you can use in Workshop, OSDK, and other places in the platform, you need to add (1). The documentation link walks through an example of this.
If this is a common Action that occurs together, you can also create a “Schedule specialist” Action that creates or modifies two objects:
You will still need a second Action that is backed by the Logic:
1 Like
Also, if you’re doing a scheduling workflow, check out Chad’s video on Dynamic Scheduling! You can find the docs for it here.
Dynamic Schedule video: https://www.youtube.com/watch?v=gbTN8zE7kkY
(Coming soon: easier set up of schedules in your ontology.)
Thank you very much for the detailed explanation. I will check on this video