Skip to main content

Hello,

I tried following :  pre-filling values when creating a new inventory part


It works for “Description” and “TypeCode”, but not for “UnitMeas”

 


 

Any idea or it’s not possible ?

Response from InventoryPart_Default GET is :

 

 


Thank you,
    best regards
      Jean-Luc
 

Is the UnitMeas you are passing is a value defined for units of measure in the application?


Hi Vimukthi,

Yes. It’s “PCS”.
 


best regards,
    Jean-Luc​​​​​​​


“PCS” exists : 
 

 

/

For eg, no issue with “PART STATUS” : 
 

 

Something special with “UnitMeas” ?


I tried with another value for UnitMeas (value “*” to be sure there is no confusion due to character case (“PCS”/”pcs”)) but same issue.

  best regards
   Jean-Luc


This happens because, in Entity definition “UnitMeas” field is not updateable. In current workflow implementation, default values are set only for updateable fields.


Hi Buddhi,

Thank you for your answer.

best regards
    Jean-Luc


“PCS” exists : 
 

 

/

For eg, no issue with “PART STATUS” : 
 

 

Something special with “UnitMeas” ?


I tried with another value for UnitMeas (value “*” to be sure there is no confusion due to character case (“PCS”/”pcs”)) but same issue.

  best regards
   Jean-Luc

What does the “Set Default Values” task script contain? I’m trying out a similar solution that prefills the part no and description when the user creates a new record. However I don’t know how to do this with the javascript task inside the workflow. Thanks


Reply