eschweitzer78 / gps-design-systems-lwc

Salesforce LWCs for Australian, French and UK Governments' Design Systems
Other
12 stars 10 forks source link

Address typeahead: issue with URL encoding #372

Closed eschweitzer78 closed 2 weeks ago

eschweitzer78 commented 2 weeks ago

Summary

The integration with NSW Point API for the Address typeahead (NSW DS) has a flaw: when only a number is typed in the typeahead input field and the user pauses, OmniStudio automatically converts the string into a integer before calling the Integration Procedure. With SfGpsDsEncodingOF expecting a string as its payload, the encoding fails and the search term is left blank.

Salesforce Org Type

Production Org

Steps To Reproduce

Go to Address Typeahead sample on nsw.dsforce.dev and type at least 4 numbers before pausing (e.g. 1160).

Current Behavior

There will be an error that the address parameter has been left blank.

Expected Behavior

The encoding should accommodate payloads that are numeric.

Relevant Log Output

No response

Code of Conduct

github-actions[bot] commented 2 weeks ago

Welcome! 👋

Thank you for posting this issue. 🙇🏼‍♂️ We will come back to you latest within the next 48h (working days). Stay tuned!