Skip to content

Commit

Permalink
Merge pull request #80 from opsgenie/update-payload-logic
Browse files Browse the repository at this point in the history
allow hypen character for SalesForce incoming payload
  • Loading branch information
cglrkn authored Dec 1, 2021
2 parents 11dbd3f + 56fe422 commit 1378bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salesForceServiceCloud/opsgenieClass.apxc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ global class opsgenieClass {
System.debug(' Response: ' + res.getBody());
}
global static string getPayloadStringByHandlingNull(String value){
return value==null?null:'"'+value.replaceAll('[^a-zA-Z0-9\\s]', '').replaceAll('\\s+', ' ')+'"';
return value==null?null:'"'+value.replaceAll('[^a-zA-Z0-9\\s\\-]', '').replaceAll('\\s+', ' ')+'"';
}
global static string getPayloadStringByHandlingNull(DateTime value){
return value==null?null:'"'+value+'"';
Expand Down

0 comments on commit 1378bac

Please sign in to comment.