AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register

— The Forums are now read-only —

— All new activity now takes place here: —

AugForums.com Discord Server
Forums
AUG Forums
Acumatica Generic I...
Generic Inquiries, ...
 
Notifications
Clear all

Questions Generic Inquiries, parameters, and ODATA

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Tim Rodman 8 years ago
4 Posts
3 Users
0 Reactions
6,417 Views
RSS
SQLRunner
Posts: 45
 SQLRunner
Topic starter
February 26, 2018 3:51 pm
(@sqlrunner)
Trusted Member
Joined: 8 years ago

Good Afternoon,

Hoping someone has an answer for this.  I'm hoping its not unsupported.  I'm trying to write a fairly complex report.  In fact, I currently have a parameter embeded in the join expression.  It works quite nicely, however, I need to bring the data to Excel through an ODATA connection and this is where trouble ensues.  I understand that I ODATA handles everything through the URL.  The report requested, the filters, etc.  Is there a way to get the ODATA url to recognize and assign a parameter?  

let
Source = OData.Feed("https://Thelostreport.com/odata/CompanyTarget/Single Table Test 3?$filter=targetUser eq 1646")
in
Source

 

 


3 Replies
russ
Posts: 31
 russ
February 27, 2018 4:49 pm
(@russ)
Eminent Member
Joined: 6 years ago

Hi -- does this post give you what you want?

https://www.augforums.com/augforums/acumatica-odata-with-microsoft-excel-and-power-bi/applying-filters-in-odata/#post-675


Reply
SQLRunner
 SQLRunner
(@sqlrunner)
Joined: 8 years ago

Trusted Member
Posts: 45
February 27, 2018 4:53 pm
Reply torussruss

Unfortunately no.  In that post, he never creates a parameter within the general inquiry.  I created a parameter in the General inquiry itself, I then need to somehow feed it a value through an ODATA URL.  The reason I need to feed it a parameter is because the join expression depends on it.  What I have started doing to get around it is creating multiple odata result sets that I feed into excel and do the joins on that level.  If I did not have the parameter in the join expression, I could forgo general inquiry parameters and just use the Odata filter.


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
February 27, 2018 11:01 pm
(@timrodman)
Famed Member
Joined: 11 years ago

Reading from the top, I was thinking, "what's the difference between OData filtering and using a parameter to do the filtering", but then you stated it again and I finally got it. You're using the parameter in the JOIN.

Unfortunately, as far as I know, it's not possible to pass a parameter through OData. But if anyone knows a way, I would love to know what it is.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,533 Topics
  • 11 K Posts
  • 152 Online
  • 2,438 Members
Our newest member: Ralph Torres
Latest Post: Nested SubReport Issue
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

By using this website, you agree to our Terms of Use (click here)

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×