Skip to main content
Solved

Using custom referenced fields in BPA/Workflow


BawTrishM
Sidekick (Partner)
Forum|alt.badge.img+6

Hello,

 

I am trying to create a person address automatically from another custom page using BPA. 

It seems that BPA does not let me use the value of the custom field from my page, if its a referenced field. Other persistent fields seem to be working just fine.

 

Custom page :

 

Entity configuration :

 

BPA :

Error received : 

 

Has anybody encountered this problem ?

 

I am using  - IFS Aurena client version: 21.2.1.20211105061905.0

 

Regards,

Trishen

 

 

 

Best answer by BawTrishM

Hello @eqbstal ,

 

Yes, hardcoding the country code works correcly.

We have identified the issue - referenced fields store the objkey of the refence and not the primary key.

 

The BPA was thus trying to parse the OBJKEY inside the Country code. To resolve this issue we have created a read only field in the source entity to store the Country code. We then use this value in BPA as parameter.

 


Regards,

Trishen

View original

2 replies

eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 677 replies
  • August 16, 2022

Have you tried to hard code, just for testing purposes, the country code. Just currious if Workflow doesn't trip over the field format (maybe it needs to be uppercase or something like that). So is it correctly working if Country is hard coded and there is still ${Cf_Cve_Site_Code} in place?


BawTrishM
Sidekick (Partner)
Forum|alt.badge.img+6
  • Author
  • Sidekick (Partner)
  • 18 replies
  • Answer
  • August 22, 2022

Hello @eqbstal ,

 

Yes, hardcoding the country code works correcly.

We have identified the issue - referenced fields store the objkey of the refence and not the primary key.

 

The BPA was thus trying to parse the OBJKEY inside the Country code. To resolve this issue we have created a read only field in the source entity to store the Country code. We then use this value in BPA as parameter.

 


Regards,

Trishen


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings