Not able to call a script include in the filter conditions in the trigger condition flow designer.

Community Alums
Not applicable

Hi all,

We want to use a dynamic condition in the trigger condition of a flow designer. We have made a script include and want to call the same in the trigger condition.

Below is the one that we are using. For the first condition, it is working absolutely fine. The moment we are calling the script include, it's not working.

image

Note: We have tried using the same method in the filter conditions of reports, and there it's working absolutely fine. But here, in flow designer it's not working.

 

Regards,

Sudhangshu Das

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi Anil,

We have tried it again, and it's working. This is what we used:

image

Here, what's happening is,

We want to receive notifications according to this filter condition.

But what's happening is, when we are using just the above two conditions, it is triggering the notification. 

But, the moment we are using the third condition, even though we are getting the correct record in the filter, somehow it is not triggering the notification.

 

Thanks & Regards,

Sudhangshu Das

View solution in original post

14 REPLIES 14

Muhammad Khan
Mega Sage
Mega Sage

Hi Sudhangshu,

 

I believe that you are calling onDemand Script Include. Try calling the script include using API Name.

 

Hopefully, this will help you to resolve your query.

Community Alums
Not applicable

Hi Muhammad, 

Thanks for the reply first of all. 

We are trying to call the script include using the API name in the format, 

javascript: global.getLastResultDeveloperSuite();

Wanted to ask, if this is the correct way to call a scrip include using it's API name? Because the above is not working. 

 

Thanks,

Sudhangshu Das

Hi,

You can call any script include like below:

javascript: new global.scriptIncludeName().functionName(); 

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Community Alums
Not applicable

Hi Anil,

We have tried using what you have said, but somehow this is also not working.