当用户启动我的屏幕流时,我试图为用户打开的任何记录提取URL。
例如,如果他们在一个帐户上,我需要帐户网址:"https://mydomain--partial.lightning.force.com/lightning/r/Account/00000000000000/view“
如果它们在报表上,我需要报表URL:"https://mydomain--partial.lightning.force.com/lightning/r/Report/00000000000000000/view?queryScope=userFolders“
我的屏幕流是从实用程序中启动的。
我现在在屏幕流(LEFT({!$Api.Partner_Server_URL_260}, FIND( '.com', {!$Api.Partner_Server_URL_260} )) + RIGHT({!$Api.Partner_Server_URL_260}, FIND( '.com', {!$Api.Partner_Server_URL_260} )))
中使用以下公式
问题是这会返回:"https://mydomain--partial.my.salesforce.com/services/Soap/u/26.0/00000000000“
发布于 2022-01-04 16:23:19
我解决了我自己的问题,我想和大家分享一下,以防将来有人遇到这种情况。
我要做的是:
中的输入变量。
“议定书”缔约方会议:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction,lightning:isUrlAddressable" access="global" >
<aura:handler name="init" value="{!this}" action="{!c.init}"/>
<lightning:flow aura:id="FLOW NAME"/>
</aura:component>
主计长:
({
init : function (cmp) {
var flow = cmp.find("FLOWNAME");
var inputVariables = [
{
name : 'vCurentlURL',
type : 'String',
value : window.location.href,
}
];
flow.startFlow("FLOWNAME", inputVariables );
}
})
https://stackoverflow.com/questions/70452056
复制相似问题