I created a DataType for collecting details. For ex: ChannelNumber and ChannelName where ChannelNumber is key.
In Flow, In first assignment I am collecting details ChannelNumber and ChannelName and in next I used Save Data Page shape putting Savable Data Page and giving the required parameter.
Suppose If user don’t want to fill ChannelNumber and ChannelName details and want to go to third assignment assignment how we can do this ?
When I am normally submitting first assignment without filling any details it is giving error key required.
First of all if ChannelNumber is a non mandatory user field then this should not be used as a key for the data type, instead you can use pyGUID as the data type key.
Secondly if you still want to proceed with current design then you should be using a decision fork shape to write a when expression to check whether ChannelNumber is blank or not. Based on the condition you can execute the save data page shape if the property value is non blank otherwise skip the save data page shape and execute the next assignment shape.
@SoumyajitB Hi, Thanks for reply. Second second answer is fine.
But in first one, when I give pyGUID as the key for the data type. And user don;t put Channel number and Channel name in the first assignment, then Save data page shape will insert blank value for Channel number and Channel Number in database table right, So, How to handle this thing?
If you don’t want to input ChannelNumber and ChannelName in the table when pyGUID is the key, then in the fork to check whether data is present in those fields, if not then skip the Save Data Page shape. Then a GUID wont be generated and no blank entries would be present.
If you want to keep ChannelNumber as the key then you need to check in the fork if the data is present or not and accordingly skip the Save Data Page shape.
In this case also you need to put some check condition to verify the fields are having value or not, and then only proceed to execute the save data page shape in order to avoid adding blank values to the table.