我有一个nodeAliasPath
改变其他字段的输入字段:
inputFields: [
{
key: 'nodeAliasPath',
type: 'string',
required: true,
label: 'Node alias path',
helpText: 'The path of the page to update. For example, "/Blogs/Food"',
altersDynamicFields: true
},
...
getPageData
我的nodeAliasPath
其他(动态)字段调用z.request
inputFields: [
async function (z, bundle) {
const pageData = await getPageData(z, bundle, bundle.inputData.nodeAliasPath, bundle.inputData.culture);
if(!pageData) throw new z.errors.HaltedError(`Page not found. Please check the Node Alias Path and Culture.` );
else return await getPageColumnsField(z, bundle, pageData["NodeClassID"], pageData);
},
...
该updatePage
函数用于{{bundle.inputData.nodeAliasPath}}
获取提供的输入:
const options = {
url: `{{bundle.authData.website}}/rest/content/currentsite`
+ `/${data.DocumentCulture}/document{{bundle.inputData.nodeAliasPath}}`,
但是,当请求运行时,我可以在 Zapier 平台的Monitoring选项卡中看到执行的请求实际上是/document{{114648603__NodeAliasPath}}。只有当我尝试从上一步中提取一个值时才会发生这种情况——如果我输入一些值,请求看起来很完美并且运行良好。
如何解析 URL 中的卷曲以从另一个步骤获取字段的实际值?当前步骤中的动态字段依赖于该请求的结果。