cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase order number using events issue

former_member535186
Participant
0 Kudos

Dear Experts,

Am trying to retrieve the purchasing order number from script files to create instance on my custom BO, while change or create the Po# is always result as "##1" at runtime, i should validate in creating new instance to my custom BO, 1 instance per one PO should be created, so how can i validate without the info of PO#...

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Motaz,

You need a stable key for the PO.

Do you have this information?
Then make this key the AlternativeKey for your BO.
If a create comes in, use this key to retrieve your own BO. If this fails, this instance does not exist and you can create it.

HTH,
. Horst

former_member535186
Participant
0 Kudos

Dear Horist,

thank you, that means that i can not get the exact number of Purchase order to my custom BO using XBO beforesave event ??

- Another question: can i add button to toolbar using ext explorer ADD CUSTOM ACTION option, if yes please send me a documentation, I've tried to use this functionality but i think i have to add action to my XBO associated to the new Button, and purchase order is non-ESF2.

Regards,

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Motaz,

If the PO is drawing its number late, it will be available after the save, Too late for you. 😞
But for this we have stable AlternativeKeys which are determined on the creation of the node instance

Second:"Add Custom Action" refers to an action added to an XBO. As you already noticed this works only for ESF2 BOs.
So, no ESF2 BO, no XBO action, no UI action

Sorry,
. Horst