web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Problems with using Sm...
Power Apps
Answered

Problems with using Smartsheet insert row () from Power Apps

(0) ShareShare
ReportReport
Posted on by 37

Hi - I have a Power App where i am assembling data to insert new row in SmartSheet and continue to struggle to pass a record successfully to insert into my sheet. 

 

Here is the code I am using and receiving the following:  Invalid argument (Table) Expecting Untypedobject... I am new to Power App and know that the collect is probably not right approach and hoping this group can assist. 


// Try this structure to pass to smartsheet directly from this OnSelect:
Collect(rowProjHours, {ProjectID: selProject, Hours:txt_hours.Text, WorkItemDesc: txt_workdescription.Text, MilestoneDeliverable: txt_milestonedeliverabledesc.Text, Resource:ddl_resource.SelectedText.Value, IncludeClientInvoice: chk_includeclientinvoice.Value });

 

Smartsheet.InsertRow(selProject.id,rowProjHours);

 

Thanks in advance!

 

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @SM_Trailhead ,

     

    Please try to pass the value to flow and use flow to insert data into the sheet.

    vxiaochenmsft_0-1689835408658.png

    vxiaochenmsft_1-1689835448174.png

    'PowerAppV2->Insertrow'.Run( JSON( [{'Primary Column':"Test1",'Column2':"Test2"},{'Primary Column':"Test3",'Column2':"Test4"},{'Primary Column':"Test5",'Column2':"Test6"}],JSONFormat.Compact))

     

    vxiaochenmsft_2-1689835512878.png

     

    Best Regards,

    Wearsky

  • SM_Trailhead Profile Picture
    37 on at

    Hello Wearsky,

     

    Thank you so very much for detailed instructions. I was able to reproduce your example above and works very well. Where the solution for my client breaks down, is when I need to pass the Sheet Id dynamically from the Power Apps OnSelect. Basically I need to pass the Sheet ID as well as the columns in the sheet. The columns would definitely be consistent across any sheet ID that is passed in to the flow. When I tried to extend your solution to include that input, I couldn't figure it out.

    SM_Trailhead_1-1689875834056.png

     

    SM_Trailhead_0-1689875810573.png

    I receive "Unable to parse insert row request payload."

     

    I am grateful for the support of this community! Thanks 

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @SM_Trailhead ,

     

    Please try this

    vxiaochenmsft_0-1689904326796.png

    vxiaochenmsft_1-1689904342868.png

    'PowerAppV2->Insertrow'.Run("4226679132082052",JSON([{'Primary Column':"Test1",'Column2':"Test2"},{'Primary Column':"Test3",'Column2':"Test4"},{'Primary Column':"Test5",'Column2':"Test6"}],JSONFormat.Compact));

     

    Best Regards,

    Wearsky

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard