Use Business Maps to fill in fields from related modules - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: Use Business Maps to fill in fields from related modules (/showthread.php?tid=633) |
Use Business Maps to fill in fields from related modules - Guido1982 - 04-20-2017 I have a use case where I need to do the following: I've related SalesOrders to HelpDesk. Now I can create an SO from a ticket. Using Business Maps I can make sure some fields are auto-filled during the creation of the SO. But I'd like to do the following through Business Maps: when an SO is created from a ticket, I'd like to be able to fill out the address fields in the new SO, based on the accounts address fields from the account selected in the ticket. Do we have a way of getting fields from related modules like this, without the source fields being present in the source module? I was reading into Condition Query Mappings for this. I don't fully understand how to implement these, especially the QueryGenerator part. Could a condition query be used in a Field map to get related fields? And does anyone have an example of this? RE: Use Business Maps to fill in fields from related modules - Guido1982 - 04-21-2017 Wow, cool stuff this. And it seems I could have known this. I setup a test like this (for anyone looking for something similar): PHP Code: <map> Make sure the Orgfield is set to 'FIELD' and test the field selector in an e-mail template in workflows (to get the correct fieldname and syntax). You can create a salesorder from a ticket like this and even fill in fields from the account that the ticket doesn't have! For anyone looking for a Business Map that auto-fills some address and description data when creating a salesorder from a ticket: here it is: PHP Code: <map> RE: Use Business Maps to fill in fields from related modules - joebordes - 04-25-2017 Nice!! :-) RE: Use Business Maps to fill in fields from related modules - joebordes - 04-25-2017 I added it to the wiki: http://corebos.org/documentation/doku.php?id=en:adminmanual:businessmappings:store:businessmap_helpdesk2salesorder Thanks! |