Does any faced the issue in interface when you use the typeOf() function against record in any interface or rule. In my case I have use a condition to check for particular record type against a list of variants. Its working fine during unit testing in interface level, but while opening that interface via portal link, data are not properly returned because of the invalid value returned in this function.
Discussion posts and replies are publicly visible
I never tried that on a portal. Did you consider opening a support case?
Do you want to share what you are working on? Maybe there is an alternative approach.
Hi hamsaviruthans
I used typeof() in portal, and it worked for me. Could you provide code snippet?
typeof()
Yes, I'm using typeof() against the data of a particular record type. In Appian interface i'm getting one value which is a valid one but in portal it gives some other value.
In Portal
any idea on this?
Yes, I'm using the typeof() function against the data returned from particular record type. while testing that in interface it is returning a valid value, whereas in portal it is returning a random value.
in Interface
in portal
Here is the Example of the issue The Record "M order Details", when we use the function { runtimetypeof() or typeof() } in the Appian Designer UI it returns typeNumber 8049 but the same UI when published as a Portal . I can see the typenumber of the record is changing to some random number 10002.PS: We have also tried with Exposing Record As webApis and integrations to query as well to check the behaviour but it still returns the same 10002 as typeNumberStefan Helzle ,
Why is that record type number relevant?