Core APIs
List
Multi
2 min
allows you to define a set of multiple core api to run in a single call this function offers high performance benefits any of the core functions can be included in the definition and the definitions will act on the output of any of the previous definitions in the list task credits will be equal to the number of functions items in list i e if there are 100 items in the list and 2 functions then the api credits consumed will be 100 2 = 200 check with the support team for task credit utilisation in multi api usage for different plans each function is in the functions array should have the following properties 100,369,136 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type use case say you want to apply two functions on a list of json input from a lead source docid w9rm9tuww0rarx1 pch2 and docid\ efshyftxcwyrbg5xj7o7n to extract the month name and year and then use the value in the final output by using docid on3t7rdmzsjqh6ch0ulk api definition { "tab" "examples", "url" "https //orca pathfix com/functions/list/multi", "name" "list multi api", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "28usdqyeh3qrdmtvamsqt", "code" "{\n \\"output\\" \[\n {\n \\"eml\\" \\"bruce\@pathfix com\\",\n \\"source\\" \\"fb\\",\n \\"other\\" \\"test\\",\n \\"additional value\\" \\"pathfix\\",\n \\"month\\" \\"jan 2022\\"\n },\n {\n \\"eml\\" \\"paul\@pathfix com\\",\n \\"source\\" \\"fb\\",\n \\"other\\" \\"\\",\n \\"additional value\\" \\"pathfix\\",\n \\"month\\" \\"feb 2022\\"\n },\n {\n \\"eml\\" \\"chang\@pathfix com\\",\n \\"source\\" \\"li\\",\n \\"other\\" \\"\\",\n \\"additional value\\" \\"pathfix\\",\n \\"month\\" \\"feb 2022\\"\n }\n ]\n}", "language" "200" }, { "id" "yix64dyiudpjgbrfsfawb", "code" "{\n \\"message\\" \\"error\\"\n}", "language" "404" } ], "selectedlanguageid" "28usdqyeh3qrdmtvamsqt" }, "examples" { "languages" \[ { "id" "encjz9tstg38f0x taa4x", "code" "{\r\n \\"input\\" \[\r\n {\r\n \\"email\\" \\"bruce\@pathfix com\\",\r\n \\"source\\" \\"facebook\\",\r\n \\"other\\" \\"test\\",\r\n\t\t\t\\"date\\" \\"2022 01 25\\"\r\n },\r\n {\r\n \\"email\\" \\"paul\@pathfix com\\",\r\n \\"source\\" \\"facebook\\",\r\n\t\t\t\\"date\\" \\"2022 02 12\\"\r\n },\r\n {\r\n \\"email\\" \\"chang\@pathfix com\\",\r\n \\"source\\" \\"linkedin\\",\r\n\t\t\t\\"date\\" \\"2022 02 15\\"\r\n\r\n }\r\n ],\r\n\t\\"functions\\" \[\r\n {\r\n\t\t\t//this is a reference to the text/switch function \r\n \\"name\\" \\"switch source\\",\r\n \\"type\\" \\"text\\",\r\n \\"function\\" \\"switch\\",\r\n \\"params\\" {\r\n \\"input\\" \\"{{source}}\\",\r\n \\"switch\\" {\r\n \\"facebook\\" \\"fb\\",\r\n \\"linkedin\\" \\"li\\"\r\n }\r\n }\r\n },\r\n\t\t{\r\n\t\t\t//this is a reference to the datetime/split function \r\n \\"name\\" \\"date enum\\",\r\n \\"type\\" \\"datetime\\",\r\n \\"function\\" \\"split\\",\r\n \\"params\\" {\r\n \\"input\\" \\"{{date}}\\"\r\n }\r\n },\r\n {\r\n\t\t\t//this is a reference json/replacefrominput \r\n \\"name\\" \\"convert\\",\r\n \\"type\\" \\"json\\",\r\n \\"function\\" \\"replacefrominput\\",\r\n \\"params\\" {\r\n \\"output\\" {\r\n \\"eml\\" \\"{{email}}\\",\r\n \\"source\\" \\"{{switch source output}}\\",\r\n \\"other\\" \\"{{other}}\\",\r\n \\"additional value\\" \\"pathfix\\",\r\n\t\t\t\t\t\\"month\\" \\"{{date enum output monthname}} {{date enum output year}}\\"\r\n },\r\n \\"replace if not found\\" \\"yes\\"\r\n }\r\n }\r\n ]\r\n}", "language" "json" } ], "selectedlanguageid" "encjz9tstg38f0x taa4x" }, "description" "\ncall the following api ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }
