コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

How to change or get the URL length of more than 2000 characters? ACC Work flow javascript code

Avatar

Level 1

I want to change the length of my string type URL field to 2048 i.e.  <attribute label="Links Url" length="2048" name="lnksUrl" type="string"/>  but its not working. Its only working when the length is of 1024. Any idea on how we can manage to extract.

 

Do i need to take any other data type instead of string?

 

In my code I have written as

 

* In Schema

  <attribute label="Links Url" length="2048" name="lnksUrl" type="string"/>

 

* In Workflow Javascript -

  var linksURL = jsonObj.content[index].links.url;

* And asigning it to the schema

  lnksUrl ={linksURL}

 

Any idea ? 

 

But not working.

 

トピック

トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Hi,

 

What is not working? Does memo work instead of string?

 

Thanks,

-Jon

元の投稿で解決策を見る

5 返信

Avatar

正解者
Community Advisor

Hi,

 

What is not working? Does memo work instead of string?

 

Thanks,

-Jon

Avatar

Level 1

We are fetching JSON data in a var type. Then we are assigning the var value to <attribute label="Links Url" length="2048" name="lnksUrl" type="string"/>.schema. Problem is when that when I change the length of my string type URL field to 2048 i.e.  <attribute label="Links Url" length="2048" name="lnksUrl" type="string"/>  but its not working. Its only working when the length is of 1024. Any idea on how we can manage to extract.

 

Do i need to take any other data type instead of string?

Avatar

Community Advisor
Alternative data type is memo, though 2048 will fit in varchar for all of Campaign's supported db's. Did you run 'update database' after making the change?

Avatar

Level 1
Its working fine. Thanks

Avatar

Level 2

What was the solution? We are facing a similar problem.

Thanks,

Jim