Duncan_Stewart | 2017-09-25 19:12:32 UTC | #1
I'm working to build a custom action from a web service I built in Salesforce, and running into a syntax error creating the action contracts. I took what I had built out for the Bridge Server integration in terms of properties and am trying to match the Input/Output Contract examples as follows: Input Contract:
{"$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["ContactId"],"properties":{"ContactId":{"type":"string"}}}
Output Contract:
{"$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["PatientId","ShipDate","DeliveryDate","isPureflow","isPureflowwWarmer","hasWastelines"],"properties":{"PatientId":{"type":"string"},"ShipDate":{"type":"date"},"DeliveryDate":{"type":"date"},"isPureflow":{"type":"boolean"},"isPureflowwWarmer":{"type":"boolean"},"hasWastelines":{"type":"boolean"}}}
The properties are more streamlined than they were in the Bridge Server actions (w/o the descriptions, for one), and there's at least one syntax error here but I'm not seeing it. I'd appreciate any assistance you may provide.
tim.smith | 2017-09-25 19:23:12 UTC | #2
I put both of those into a JSON syntax checker and they look fine. Are you having an issue of some sort?
Duncan_Stewart | 2017-09-25 19:47:55 UTC | #3
I was getting a syntax error when I tried to save, but now I don't -- self-resolving error, I guess :D Moving on ...
system | 2017-10-26 19:47:58 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 1859