简体   繁体   English

如何在逻辑应用程序中将 xml 转换为 EDI x12 855 消息?

[英]How to convert xml to EDI x12 855 message in logic app?

How to convert xml to EDI x12 855 message in logic app?如何在逻辑应用程序中将 xml 转换为 EDI x12 855 消息? i used Transform XML then i used Encode component there i get output as enter image description here我使用了 Transform XML 然后我使用了 Encode 组件在那里我得到输出作为输入图像描述

when i try to add decode component in logic app flow it shows an error like, Unable to process template language expressions in action 'Decode_X12_message' inputs at line '1' and column '1535': 'The template language function 'base64ToString' expects its parameter to be a string.当我尝试在逻辑应用程序流中添加解码组件时,它显示了一个错误,例如,无法在“1”行和“1535”列的“Decode_X12_message”输入中处理模板语言表达式:“模板语言函数‘base64ToString’需要它的参数为字符串。 The provided value is of type 'Null'.提供的值的类型为“Null”。 Please see https://aka.ms/logicexpressions#base64ToString for usage details.'.请参阅https://aka.ms/logicexpressions#base64ToString了解使用详情。'。 and i used "@{base64ToString(item()?[body('Encode_to_X12_message_by_agreement_name')?['Payload']])}" in code view of decode component.我在解码组件的代码视图中使用了“@{base64ToString(item()?[body('Encode_to_X12_message_by_agreement_name')?['Payload']])}”。 How can i solve this and how can i generate EDi x12 855 from XML input?我该如何解决这个问题以及如何从 XML 输入生成 EDi x12 855? please provide me the workflow components to be used and workflow definition language for specific component.请向我提供要使用的工作流组件和特定组件的工作流定义语言。

Here is my logic app workflow enter image description here这是我的逻辑应用工作流程在此处输入图像描述

Why are you using item() , you only need:你为什么使用item() ,你只需要:

@{base64ToString(body('Encode_to_X12_message_by_agreement_name')
?['Payload'])}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM