//pseudocode - untested
//an example below
With
(
{
myStatusParam:"Status"
,myStatusValue:"active"
,myCompanyParam:"Company"
,myCompanyValue:"Microsoft"
}
,MyAPI.GetRecords("Accounts",{Filters:$"{myStatusParam}={myStatusValue}&{myCompanyParam}=myCompanyValue"}).data
)
If you don't like the $ sign syntax, then
//pseudocode - untested
//an example below
With
(
{
myStatusParam:"Status"
,myStatusValue:"active"
,myCompanyParam:"Company"
,myCompanyValue:"Microsoft"
}
,MyAPI.GetRecords("Accounts",{Filters:myStatusParam & "=" & myStatusValue & "&" & myCompanyParam & "=" & myCompanyValue).data
)
or if you need to keep it exactly in the format you gave, and assuming that it was correct, then like this:
//pseudocode - untested
With
(
{sp:"Status",e:"=",sv:"active",ash:"another string here",moms:"maybe one more string"}
,MyAPI.GetRecords("Accounts",{Filters:$"[[""{sp}"",""{e}"",""{sv}""],[""{ash}""],[""{moms}""]]"}).data
)
Try it with the dollar sign syntax, like above, since it's quite a bit more complicated without it:
Without dollar sign syntax, it might be like this below, far more complicated than with the dollar sign syntax, and I am less sure it's correct:
//pseudocode - untested
With
(
{sp:"Status",e:"=",sv:"active",ash:"another string here",moms:"maybe one more string"}
,MyAPI.GetRecords("Accounts",{Filters:"[[""" & sp & """,""" & e & """,""" & sv & """],[""" & ash & """],[""" & moms & """]]"""}).data
)
​
See if it helps as starting point @oguruma