The CreatorCon Call for Content is officially open! Get started here.

Order Guide Approval

amacqueen
Mega Guru

I have set up an order guide for a New User Account and there are multiple selections for the type of account the submitting user can select, each of which is represented as an item - all works well apart from an issue with the approval email being incomplete for which I have submitted another question earlier today.

However I have been requested to see if I can incorporate all the approvals into one email rather than having an email sent for each item approval. I know that logically the way it is currently working makes sense however my boss seems to think our Managers may say to themselves after the third or fourth approval request 'I've already done this' and simply ignore the email.

Can anyone offer any suggestions as to how or whether I can achieve this?

Thanks in advance.

7 REPLIES 7

Thanks for that Peter I will investigate based on your suggestions.


SHA3
Giga Expert

Hi Angus,



I have very similar requirement to avoid multiple emails sent for all items for same request in an order guide and send mail once.



Where your able to get the solution for this, please share your approach that will be really helpful for me


Bishnu Prasad
Kilo Explorer

It’s a workaround instead of configuring approval on Request level.

Lets say we have 2 RITMs under an Order guide, you want to run the approvals/not to set approvals of 2nd RITM based on first RITM.

Create a business rule to query the current request number in requested item table, condition =   after update.

Sample  :

var item1 = current.cat_item.getDisplayValue();

                if (item == 'First item name where you want to put approval’)

                                {

                                                var REQ = current.request.sys_id;

                                                var stage = current.stage;

                                               

                                                if(stage == 'fulfillment')

                                                                {

                                                                                var item2 = new GlideRecord('sc_req_item');

                                                item2.addQuery('request',REQ);

                                                item2.addQuery('short_description','2nd item name, where ');

                                                item2.query();

                                                if(item2.next())

                                                                {

                                                                               

                                                                                var number = item2.number;

                                                                                item2.state = '168'; // it will set the 2nd RITM’s state into In progress

                                                                                item2.update();

                                                       }

                                                      }

 Now in 2nd RITM’s workflow, put a timer of your choice, and check for the condition (if state == ‘In progress), so once the first RITM will be approved, it will set the 2nd RITM state into In progress and hence your tasks will be triggered without asking for any approval.

 

 

find_real_file.png

So, in short you will have to approve your One RITM , and for rest of RITMs you can directly create catalog tasks.