The main problem is that when updating a list item, we need to fill not only field we need to update but all the fields.
Therefore, before the update, we must first request all the fields of the element by ID, reformat them into another array, and only then update.
http_build_query function: https://gist.github.com/BedrosovaYulia/2373bf43b4f89ee4479cc04ab1d0ceff
During one of our recent self-hosted Bitrix24 implementations, we had the task of adding a new type of Activity to CRM - something between a Call Activity and a Visit Activity. The customer wanted this new Activity to be able to participate in CRM reports and filters. To begin with, it was necessary to add a link to a new Activity type in the CRM entity card. We found out that the crm.timeline component is responsible for the output of this part of the interface. In particular, its template.php contains a list of displayed links to case types. For example, for a call, something like: Accordingly, as we can see, this is a regular link with the data parameter item-item-id. So we can add ours, with our own unique data-item-id. As you can see, the href for the link is set as "#" - clicking on this link is processed by the JS code from the script.js of this component. Indeed, the BX.CrmTimelineMenuBar function is responsible for this.processItemSelection()....
Comments
Post a Comment