We have the following structure: An organization has a set of products. We would like to have a unique drop-down field for the products assigned to each organization.
We have the following need: The goal is to show the list of products to the customer when he/she creates a ticket based on the organization he/she is belonging to.
What we tried so far:
- Creating the list of products for each organization as tags (Which answer the uniqueness of the field) - DONE
- Creating a custom drop-down field with all the products of all the organizations - DONE
- Creating a script to compare the custom drop down field (All products) with the tags of the organization the customer is affiliated to - BLOCKED
To be able to solve the third step, we need to make a REST API call to get the list of tags of an organization based on the organization_id or the user_id. However, we have no idea how to fetch this from the Guide.
Any ideas? Or maybe any other solutions to our problem?
Por favor, entrar para comentar.