动态字段中使用的曲线不被解析



我有一个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
},
...

我的其他(动态)场调用getPageDatanodeAliasPath形成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中的曲线以从另一个步骤获得字段的实际值?当前步骤中的动态字段依赖于此请求的结果。

我们在这个GitHub问题中讨论过这个问题,但要点是在Zap编辑器中,自定义字段不能依赖于映射字段.

最新更新