最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sharepoint - Keeping getting the error Invalid argument type. Expecting a Record value, but of a different schema - Stack Overfl

programmeradmin4浏览0评论

So I have an issue where I need to take the user selection, in this case the department and job they have selected and then they click clockin, this registers this in sharepoint against their id, however it keeps on giving two errors

Incompatible type. The 'Id' column in the data source you’re updating expects a 'Number' type and you’re using a 'Error' type. Name isn't valid. 'ID' isn't recognized. Keeping getting the error Invalid argument type. Expecting a Record value, but of a different schema.


`Patch(
    'Employee Portal', 
    Defaults('Employee Portal'), 
    {
        'EmployeeID': Text(First(BarcodeReader1.Barcodes).Value),  the barcode scanner
        ClockInTime: DateAdd(Now(), -TimeZoneOffset(), TimeUnit.Minutes), 
        
        // Department lookup field (from ddldepartment dropdown)
        DepartmentName: {  
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",  
            Id: ddldepartment.Selected.ID, 
            Value: ddldepartment.Selected.Value  
        },

        // JobType lookup field (from ddljob dropdown)
        JobType: {  
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",  
            Id: ddljob.Selected.ID, 
            Value: ddljob.Selected.Value  
        }
    }
);`

I have tried to remove and re-add the data sources, ensure the formulas are correct and ensured that it can see the ID generated by sharepoint

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论