E10 BPM to invoke a BO Method to Update a different Table

I am trying to create a BPM from Erp.CustCnt.Update method directive to apply data to a field in the CustCnt Table, I also want to update the PerCon table so have Inserted an “Invoke BO Method”, using “Update Table by Query”

See layout below.

The query is simple using just the “ttCustCnt” with the criteria of “ShiptoNum” = “” to display the Company, PerconID

The Invoke BO Method is set to use the above Query to update all rows of the PerconUpdateTable.PerCon (“variable”) table with the configured mapopings.

The mappings are all ignore except the field I wish to update, I have the table relationships set to Company = Company and PerConId = PerConId

Where am I going wrong.? Or is what I’m doing impossible?

Cheers

Glenn

Glenn,

Good intentions aside, whoever designed this approach with the idea that you could call BO/Methods without Code may indeed be a diabolical and twisted soul who is probably still laughing at the thought of us using it. It does work, but it’s so painful and laborious to use, the time spent building one you could have taught yourself to write code from scratch. Ok, maybe I’m venting a little, but it’s not a fun tool. You’ll need to get a dataset to work with, either by GetByID, Rows, something, setup your variables, datasets, plus any other that may apply etc… I’ve muddled through a couple out of curiosity, but decided to take up cutting myself for a hobby instead. So here’s a working example that i made. Whenever a row is added to a UD table, it looks up a part in part entry (data validation done elsewhere) and updates a checkbox. Simple, but it works and should demonstrate the elements needed… This is for Version 10.1.400.11, should work for any 10.1 point release.

ElementBOCall.bpm (42.4 KB)

10 Likes

BAHAHA!

@rbucek you get extra points!!

1 Like

:sweat_smile: lol @rbucek

1 Like

Glenn,
If Rob’s sample wasn’t enough to get you going along, what I have included might help.

I assumed that you were updating the corresponding PerCon record for the CustCnt that is being updated and that triggers the directive.

  1. The Invoke BO Method I used was PerCon.UpdateExt.

  2. In the configured parameters I created a dataset variable (tblPerCon) to be passed to the method. So the bindings looked like this:
    a. ds -> tblPerCon
    b. Continue processing on… -> false
    c. Rollback… -> true
    d. errorsOccurred -> ignore
    e. -> ignore

  3. I used the Fill Table by Query to fill the tblPerCon variable. The query has ttCustCnt joined to Erp.PerCon on Company and PerConID.

  4. For display fields from my query I selected PerCon_Company and PerCon_PerConID.

  5. In the mapping I populated:
    • tblPerCon.Company with PerCon_Company,
    • tblPerCon.PerConID with PerCon_PerConID
    • tblPerCon.Address3 with a test text entry to demo that the change occurred
    • tblPerCon.RowMod with “U”

1 Like

01001100 01001101 01000001 01001111 00001101 00001010 01010000 01110010 01101111 01100010 01101100 01100101 01101101 00100000 01101001 01110011 00100000 01001001 00100111 01101101 00100000 01101110 01101111 01110100 00100000 01100001 00100000 01100011 01101111 01100100 01100101 01110010 00100000 01110011 01101111 00100000 01101000 01100001 01110110 01100101 00100000 01110100 01101111 00100000 01110010 01100101 01110011 01101111 01110010 01110100 00100000 01110100 01101111 00100000 01110100 01101000 01100101 00100000 01110100 01101111 01101111 01101100 01110011 00100000 01001001 00100000 01101000 01100001 01110110 01100101 00100000 01100001 01110110 01100001 01101001 01101100 01100001 01100010 01101100 01100101 00101110 00100000 00001101 00001010 01001001 00100000 01101101 01100001 01101110 01100001 01100111 01100101 01100100 00100000 01110100 01101111 00100000 01100100 01101111 00100000 01110111 01101000 01100001 01110100 00100000 01001001 00100000 01101110 01100101 01100101 01100100 01100101 01100100 00100000 00101000 01101000 01100001 01110110 01100101 00100000 01110100 01101000 01100101 00100000 01110011 01100011 01100001 01110010 01100101 01110011 00100000 01110100 01101111 00100000 01110000 01110010 01101111 01110110 01100101 00100000 01101001 01110100 00101001 00001101 00001010 01001000 01100001 01110110 01100101 00100000 01100001 01110100 01110100 01100001 01100011 01101000 01100101 01100100 00100000 01110100 01101000 01100101 00100000 01000010 01010000 01001101 00100000 01110100 01101000 01100001 01110100 00100000 01001001 00100000 01100011 01101111 01101101 01110000 01101100 01100101 01110100 01100101 01100100 00101110 00100000 01001001 00100111 01101101 00100000 01101110 01101111 01110100 00100000 01110011 01110101 01110010 01100101 00100000 01101001 01100110 00100000 01111001 01101111 01110101 00100111 01101100 01101100 00100000 01101110 01100101 01100101 01100100 00100000 01110100 01101000 01100101 00100000 01010101 01000100 00100000 01100110 01101001 01100101 01101100 01100100 01110011 00100000 01110100 01101111 00100000 01101001 01101101 01110000 01101111 01110010 01110100 00101110 00001101 00001010 01010100 01101000 01100001 01101110 01101011 01110011 00100000 01100110 01101111 01110010 00100000 01110100 01101000 01100101 00100000 01101000 01100101 01101100 01110000 00100000 01110100 01101000 01101111 01110101 01100111 01101000 00101110 00001101 00001010 01000011 01101000 01100101 01100101 01110010 01110011 00001101 00001010 01000111 01101100 01100101 01101110 01101110

…Real cute Glenn… LoL (Moderator)
“LMAO
Problem is I’m not a coder so have to resort to the tools I have available.
I managed to do what I needed (have the scares to prove it)
Have attached the BPM that I completed. I’m not sure if you’ll need the UD fields to import.
Thanks for the help though.
Cheers
Glenn”

UpdateCRM.bpm (60.7 KB)

1 Like

I did have to get help from someone who could code though. Thanks Simon

Hello rbucek,

Older thread, I know but It pertains to what I am trying to do.
In your example: ElementBOCall.bpm,
I see you created a variable ‘Checkbox02’ and set to true, where did you use it?
I would have thought in the Update Table by Query but I didn’t see it in there. Just the rowmod.

I appreciate the help.

A post was split to a new topic: Update UD Codes via BPM