{"addAPI": {"url": "/project/resource/v1/_create", "requestBody": "{\"ProjectResource\":{}}", "requestJson": "ProjectResource", "responseJson": "ProjectResource.id"}, "custom": [{"prefix": " ", "suffix": "", "fieldPath": "projectId", "dataSource": {"API": "/project/v1/_search", "requestBody": "{\"Projects\":  [{\"tenantId\": \"mz\", \"startDate\": 1686853800000}]}", "responseJSON": "Project", "requestParams": "{\"limit\":100,\"offset\":0,\"tenantId\":\"mz\"}", "customFunction": "(data)=>{return data?.Project.map(obj=>({label:`${obj?.name}/${obj?.address?.boundaryType}/${obj?.address?.boundary}`,value:obj.id})); }", "responseFieldPath": "id"}}, {"prefix": "", "suffix": "", "fieldPath": "resource.productVariantId", "dataSource": {"API": "/product/variant/v1/_search", "requestBody": "{\"ProductVariant\":{}}", "responseJSON": "ProductVariant", "requestParams": "{\"limit\":100,\"offset\":0,\"tenantId\":\"mz\"}", "customFunction": "(data)=>{ return data?.ProductVariant.map(obj=>obj.id); }", "responseFieldPath": "productVariantId"}}], "schemaCode": "Health.ProjectResource"}