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他の(動的)フィールド呼び出しnodeAliasPathz.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 プラットフォームの [モニタリング] タブで、実行されたリクエストが実際には/document{{114648603__NodeAliasPath}}であることがわかります。これは、前のステップから値を取得しようとした場合にのみ発生します。値を入力すると、リクエストは完璧に見え、正常に実行されます。
URL のカーリーを解決して、別のステップからフィールドの実際の値を取得するにはどうすればよいですか? 現在のステップの動的フィールドは、このリクエストの結果に依存しています。