Setting the approver from a Catalog Variable

Stergios Stergi
Mega Guru

Good morning,

 

We are trying to have a dynamic selection for the approver of a RITM.

We added a new variable called Manager_Approver  that is a reference to the sys_user table with some filters on that work well.

My issue is that when I try to pill pick the Approver from the Get Catalog Variables action, every option of the variables are unavailable.

 

Is there a limitation to the use of Get Catalog Variables?

Is there a different non code approach?

 

Thank you in advance!

1 ACCEPTED SOLUTION

Stefan Georgiev
Tera Guru

Hello @Stergios Stergi ,
this is why the approval activity in the flow expects a reference record and you are providing a choice variable, you can change the type of your variable or you are a Lookup Record to get the Referenced record in your approval, There is another option you can you a flow variable to convert it to a string the desired format (reference) with a bit of scripting and you the Flow variable in your approval.
Hope that this helps you!

If the provided information answers your question, please consider marking it as Helpful and Accepting the Solution so other community users can find it faster.

All the Best,
Stefan

View solution in original post

4 REPLIES 4

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi @Stergios Stergi 

I can see one variable as approver_manager but its choice type, so it will not be available in the list to pick.

 

 


Thanks and Regards,

Saurabh Gupta

Stefan Georgiev
Tera Guru

Hello @Stergios Stergi ,
this is why the approval activity in the flow expects a reference record and you are providing a choice variable, you can change the type of your variable or you are a Lookup Record to get the Referenced record in your approval, There is another option you can you a flow variable to convert it to a string the desired format (reference) with a bit of scripting and you the Flow variable in your approval.
Hope that this helps you!

If the provided information answers your question, please consider marking it as Helpful and Accepting the Solution so other community users can find it faster.

All the Best,
Stefan

Aniket Chavan
Tera Sage
Tera Sage

Hello @Stergios Stergi 

I have tried in my instance and for me its available from get catalog variables since I kept my variable choice as reference, you can refer the below image.

AniketChavan_0-1702969721190.png

But what I noticed is that you approval manager variable is showing as a choice in picker so could you please confirm once or check the configurations for your variable.

 

Let me know your views on this and Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.


Regards,
Aniket

 

Stergios Stergi
Mega Guru

Thank you very much for the replies! You were spot on, I change the variable type to reference and it worked!

Have some great holidays!