[Rewst Master v2] PSA-Datto: Get Company Status
Inputs
Outputs
Key tasks
Jinja example
{%- set all_company_statuses = [] -%}
{%- for item in RESULT.result.fields -%}
{% if item.isPickList == true and item.name == "companyType" %}
{%- set tmp = item.picklistValues | list -%}
{% for companystatuses in tmp %}
{%- set is_default = companystatuses.value|string in ORG.VARIABLES[CTX.choose_variable]|d -%}
{%- set tmp2 = all_company_statuses.append({"name": companystatuses.label, "id": companystatuses.value, "default": is_default}) -%}
{% endfor %}
{% else %}
{% endif %}
{% endfor %}
{{- all_company_statuses | list -}}
Previous[Rewst Master v2] PSA-Datto: Get Company ClassificationNext[Rewst Master v2] PSA-Datto: Get Priorities
Last updated
Was this helpful?

