Skip to main content
Question

BPA - Prefill value for (InventoryPart) UnitMeas

  • September 28, 2023
  • 6 replies
  • 176 views

Forum|alt.badge.img+6
  • Do Gooder (Partner)
  • 18 replies

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
 

6 replies

Vimukthi Mahakumbura
Superhero (Customer)
Forum|alt.badge.img+19

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


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Partner)
  • 18 replies
  • September 29, 2023

Hi Vimukthi,

Yes. It’s “PCS”.
 


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


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Partner)
  • 18 replies
  • September 29, 2023

“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


Forum|alt.badge.img+7

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


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Partner)
  • 18 replies
  • October 10, 2023

Hi Buddhi,

Thank you for your answer.

best regards
    Jean-Luc


AveTonitM
Hero (Partner)
Forum|alt.badge.img+10
  • Hero (Partner)
  • 169 replies
  • November 16, 2023

“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