From 7801cda570fb2fdfa925d0bf08f3bb193fc272c4 Mon Sep 17 00:00:00 2001 From: "B@il" Date: Tue, 24 Dec 2024 13:36:31 -0800 Subject: [PATCH 1/2] Update makeHTTPCallCPE.js upadted to dispatchFlowValueChangeEvent so the flow resource body variable is used. this is my first pull request --- .../lwc/makeHTTPCallCPE/makeHTTPCallCPE.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/flow_action_components/HTTPBuilder/force-app/main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.js b/flow_action_components/HTTPBuilder/force-app/main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.js index dabe0c6b7..a669684ab 100644 --- a/flow_action_components/HTTPBuilder/force-app/main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.js +++ b/flow_action_components/HTTPBuilder/force-app/main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.js @@ -182,7 +182,9 @@ export default class MakeHTTPCallCPE extends LightningElement { return validity; } - dispatchFlowValueChangeEvent(id, newValue, newValueDataType) { + dispatchFlowValueChangeEvent(event) { + if (event && event.detail) { + const newValue = event.detail.value; const valueChangedEvent = new CustomEvent('configuration_editor_input_value_changed', { bubbles: true, cancelable: false, @@ -194,7 +196,7 @@ export default class MakeHTTPCallCPE extends LightningElement { } }); this.dispatchEvent(valueChangedEvent); - } + }} changeURL(event) { //this.inputValues['Endpoint'] = event.target.value; @@ -266,15 +268,6 @@ export default class MakeHTTPCallCPE extends LightningElement { } - getFLowBooleanValue(value) { - if(value === '$GlobalConstant.True') { - return true; - } else if('$GlobalConstant.False') { - return false; - } - - return value; - } makeRESTCall(request) { makeTestRESTCall( { @@ -304,4 +297,4 @@ export default class MakeHTTPCallCPE extends LightningElement { return JSON.stringify(request); } -} \ No newline at end of file +} From dc209dafdf430520192caac17c8fad0c53604b4e Mon Sep 17 00:00:00 2001 From: "B@il" Date: Tue, 24 Dec 2024 13:40:54 -0800 Subject: [PATCH 2/2] Update makeHTTPCallCPE.html this is is my first pull request. This lwc had an issue with POST methods not allowing the setBody to use a flow resource variable. I've fixed that. along with the js file. --- .../main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow_action_components/HTTPBuilder/force-app/main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.html b/flow_action_components/HTTPBuilder/force-app/main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.html index 30c6d3dc0..186c91820 100644 --- a/flow_action_components/HTTPBuilder/force-app/main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.html +++ b/flow_action_components/HTTPBuilder/force-app/main/default/lwc/makeHTTPCallCPE/makeHTTPCallCPE.html @@ -55,7 +55,7 @@

{errorMessage}

label={labels.Body_Label} builder-context={_builderContext} name="Body" - onvaluechanged={handleFlowComboboxValueChange} + onvaluechanged={changeBody} value={body} value-type={bodyType} class="slds-m-around_medium" @@ -84,7 +84,7 @@

{errorMessage}

-