How to send Selected fields from CDT to API

Hi All,

I have the below rule which I'm passing in the process parameters of an API. I am casting the cdt and sending the whole cdt as of now. Is there a way I can send only few fields from the cdt? If so how do I modify the below rule? Please help. Thanks in Advance.

Rule: TYMP_RULE_cdt_parseCaseCreationInputs:

load(
local!data: a!fromJson_19r2(ri!autoCaseCreationInput),
cast(
'type!{urn:com:POT:types:TYMP}TYMP_fileDetails',
local!data
)
)

here ri!autoCaseCreationInput is of type Text. 

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Peter Lewis

    This is one of my personal best practices for code clarity (which I enforce when possible with dev teams i'm on or managing) -- it becomes especially important when needing to nest array indexing with property fetching or vice versa (i've seen up to 3 or 4 nested index() calls before, where a majority of them are actually fetching properties). 

    Since the functions are apparently an alias for each other, I believe there's no reason not to use the proper name for the proper context.

Children
No Data