cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory Fields rule

Hi Guys,

I am just curious to know, if we are declaring some variables as input Parameters for one object action. Then while calling that action if I will not give these variables as input parameters then it should through me error. But for me some time Parameters are appearing as Mandatory and some times as optional that's why I am not getting Error Like "Input Parameters not provided".

Is there any certain condition so that I can make all input Parameters as Mandatory.

Example:- If I have a action Named as Write Invoice Details, I declared "A","B","C" as input parameters. I want to make all these input parameters as mandatory so that while calling this action from process if I will not provide these values then it should through me error.

Thanks in Advance!

------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo
4 REPLIES 4

NickiKristensen
Level 4
Hi Amlan

The best way I can think of to solve this, would be to have all your input parameters as data items.
You could then make a calculation for each of these, to check if any data is provided - ie. the expression would be "Len([Variable1]) > 0".
After that, a decision could be used to determine whether or not to continue.

------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------

Thanks Nicki For your suggestion.

------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo

I would suggest you log this as an 'idea' for Blue Prism to consider building into their product in future versions - https://community.blueprism.com/ideas/ideas

------------------------------
Howard Blake
RPA Development Lead
Sopra Steria
Europe/London
------------------------------

Thanks Howard.
I will do the same.

------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo