Using Patch in PowerApps to push data to a SQL table gives error - Stack Overflow

I have create a PowerAppsapplication that once you click on the submit button, picks data from one SQ

I have create a PowerApps application that once you click on the submit button, picks data from one SQL table and pushes it to another, the issue comes when pushing the data, I have used Patch() and Collection() functions, both facing the same issue, that is invalid arguments:

ForAll(
    clientData,
    Patch(
        '[Invoice].[tb_Test]', // Data Source
        Defaults('[Invoice].[tb_Test]'),
        {
            DEBTOR_NAME: ThisRecord.DEBTOR_NAME,
            ADDRESS: ThisRecord.DEBTOR_ADRESS,
            CONTACT: ThisRecord.BILL_TO_SITE_CONTACT_NAME,
            PIN: ThisRecord.CLIENT_PIN,
            LE_CODE: ThisRecord.LE_CODE,
            LINE_DESCRIPTION: TextInput1.Text,
            LINE_AMOUNT: Value(TextInput1_1.Text)
        }
    );

But when I modify the formula to:

ForAll(
    clientData,
    Patch(
        
        Defaults('[Invoice].[tb_Test]'),
        {
            DEBTOR_NAME: ThisRecord.DEBTOR_NAME,
            ADDRESS: ThisRecord.DEBTOR_ADRESS,
            CONTACT: ThisRecord.BILL_TO_SITE_CONTACT_NAME,
            PIN: ThisRecord.CLIENT_PIN,
            LE_CODE: ThisRecord.LE_CODE,
            LINE_DESCRIPTION: TextInput1.Text,
            LINE_AMOUNT: Value(TextInput1_1.Text)
        }
    );

By removing '[Invoice].[tb_Test]', it runs successful but no data is pushed to [Invoice].[tb_Test], anyone with possible solutions.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744345084a4569634.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信