Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
attach a product to a contact
#2
there are two ways of establishing a relation via web service

1.- when creating/updating

create and update support a "virtual" field named "relations"
https://github.com/tsolucio/corebos/blob/master/include/Webservices/Create.php#L23

which you can pass in like the other fields, it is an array of records you want to relate to the record you are creating/updating

2.- SetRelation web service end point

https://github.com/tsolucio/corebos/blob/master/build/wsChanges/setRelation.php
https://github.com/tsolucio/coreBOSwsDevelopment/blob/master/testcode/424_setrelated.php

Obviously, both support the standard way of relating modules, if you have implemented your own relation you must follow the established way to override custom relations between modules for the two methods above to work

https://github.com/tsolucio/corebos/blob/master/vtlib/ModuleDir/ModuleFile.php#L129:L155
Joe
TSolucio
Reply


Messages In This Thread
attach a product to a contact - slechaix - 08-13-2020, 03:18 AM
RE: attach a product to a contact - joebordes - 08-13-2020, 11:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)