# How to call BAQ Report from Epicor Main Screen and Pass the Value

**URL:** <https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756>\
**Category:** Kinetic ERP\
**Created:** [August 4, 2023, 2:32pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756 "2023-08-04T14:32:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thameem\_Ansari](https://www.epiusers.help/user_avatar/www.epiusers.help/thameem_ansari/32/58776_2.png) [@Thameem\_Ansari](https://www.epiusers.help/u/Thameem_Ansari)\
**Post date:** [August 4, 2023, 2:32pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/1 "2023-08-04T14:32:30Z")

</div>

Hi Guys… We are new to Epicor 11 Cloud and need your help… In PO Screen, on button click , we have to call BAQ Report and PO Number to be passed automatically to Option 1 field of BAQ Report… As of now, BAQ Report screen is getting opened, but PO Number is not getting passed to Option 1 field of BAQ Report.

Please let me know how to achieve this…

---

<div class="post-metadata">

**Author:** ![Thameem\_Ansari](https://www.epiusers.help/user_avatar/www.epiusers.help/thameem_ansari/32/58776_2.png) [@Thameem\_Ansari](https://www.epiusers.help/u/Thameem_Ansari)\
**Post date:** [August 4, 2023, 3:49pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/3 "2023-08-04T15:49:53Z")

</div>

Hi @hmwillett , Regarding this case I have found similar posts from you… I tried the same and its not working. Can you help me with the latest code or send an screen shot??

---

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [August 4, 2023, 6:06pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/4 "2023-08-04T18:06:12Z")

</div>

hey @Thameem_Ansari . Welcome to the forum.

If you want to get help, It’s probably a better approach to show what you have tried first and where you are stuck, and then if someone spots a mistake, they can help you. Simply asking someone to do something for you, which is what you effectively did to Hannah there, is really something you should do with your paid consultant. Below is a link for some tips to get the most out of this community.

> [@Tips for asking question on the forum](https://www.epiusers.help/t/tips-for-asking-question-on-the-forum/57388):
>
> This is a summary of my presentation at insights. There are starting to be a lot of questions on here that are extremely difficult to answer to lack of context, and other problems. Hopefully this information will help everyone ask better questions and get better help. I know it’s a long post and a lot to read, but I do think it’s some helpful things to think about. The E-10 help forum, the EUG Forum, and many other public places on the internet can be a great resource to get answers and ideas t…

---

<div class="post-metadata">

**Author:** ![Thameem\_Ansari](https://www.epiusers.help/user_avatar/www.epiusers.help/thameem_ansari/32/58776_2.png) [@Thameem\_Ansari](https://www.epiusers.help/u/Thameem_Ansari)\
**Post date:** [August 4, 2023, 8:26pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/5 "2023-08-04T20:26:17Z")

</div>

Thanks for the reply Banderson… Since new to the forum and this is the first post, just updated the issue. In PO screen, in button click, using app-open event, calling baq report designer and doing the json code in launch form options as shown below.

 ![image](https://www.epiusers.help/uploads/default/original/3X/8/c/8cd105e86434a48b4e1c6c40dcf9598cc1daeef7.png)  
 ![image](https://www.epiusers.help/uploads/default/original/3X/0/d/0d26299fd91f900191182fc0e721e0db7f55f7ca.png)

Similarly , in baq report designer, after form load event code shown below…

 ![image](https://www.epiusers.help/uploads/default/original/3X/d/3/d31f398e516203c15ca5070ef7ae350ca8e2551b.png)  
 ![image](https://www.epiusers.help/uploads/default/original/3X/d/c/dcf5d6c7e5c9aa604b125418b511f6a8fcabe2b6.png)

While running the report, getting error as shown below.

 ![image](https://www.epiusers.help/uploads/default/original/3X/3/4/348efad2fd993e0faaa8c3ffe50d80105d60150d.png)

Please let me know where i am getting wrong…

---

<div class="post-metadata">

**Author:** ![hmwillett](https://www.epiusers.help/user_avatar/www.epiusers.help/hmwillett/32/93207_2.png) [@hmwillett](https://www.epiusers.help/u/hmwillett)\
**Post date:** [August 7, 2023, 3:50pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/6 "2023-08-07T15:50:20Z")

</div>

Your session variable is wrong.

[Passing values to app-open tile - Experts’ Corner - Epicor User Help Forum (epiusers.help)](https://www.epiusers.help/t/passing-values-to-app-open-tile/91325/2)

[Create open BAQreport in CustShipEntry using application studio - Kinetic 202X - Epicor User Help Forum (epiusers.help)](https://www.epiusers.help/t/create-open-baqreport-in-custshipentry-using-application-studio/95908/10)

---

<div class="post-metadata">

**Author:** ![Thameem\_Ansari](https://www.epiusers.help/user_avatar/www.epiusers.help/thameem_ansari/32/58776_2.png) [@Thameem\_Ansari](https://www.epiusers.help/u/Thameem_Ansari)\
**Post date:** [August 7, 2023, 5:14pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/7 "2023-08-07T17:14:55Z")

</div>

Hi hmwillett…

I tried as per the link and still value is not getting passed…

Launching App

![image](https://www.epiusers.help/uploads/default/original/3X/2/a/2aed57d2b3eacdac64764c9a59a8a119420f6024.png)

“UDPR” is the Menu ID where this BAQ Report is mapped and “PO\_Report” is the layer name.

![image](https://www.epiusers.help/uploads/default/original/3X/4/2/42ade30e09f0f4a15c8c59100f02c1bab2ab280a.png)

Receiving App

 ![image](https://www.epiusers.help/uploads/default/original/3X/7/8/78eb07beb7df30c897c032c676aeb1b8754a50f7.png)  
 ![image](https://www.epiusers.help/uploads/default/original/3X/e/d/ed54b855f33a5714ca8da78d296e8c9817fd3e76.png)

Please let me know your suggestions.

---

<div class="post-metadata">

**Author:** ![hmwillett](https://www.epiusers.help/user_avatar/www.epiusers.help/hmwillett/32/93207_2.png) [@hmwillett](https://www.epiusers.help/u/hmwillett)\
**Post date:** [August 7, 2023, 5:44pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/8 "2023-08-07T17:44:15Z")

</div>

Syntax matters.  
Your session variable is still wrong. Additionally, it goes in the expression field, not the value field.

---

<div class="post-metadata">

**Author:** ![Thameem\_Ansari](https://www.epiusers.help/user_avatar/www.epiusers.help/thameem_ansari/32/58776_2.png) [@Thameem\_Ansari](https://www.epiusers.help/u/Thameem_Ansari)\
**Post date:** [August 7, 2023, 5:45pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/9 "2023-08-07T17:45:54Z")

</div>

Syntax error in Launching application??

---

<div class="post-metadata">

**Author:** ![hmwillett](https://www.epiusers.help/user_avatar/www.epiusers.help/hmwillett/32/93207_2.png) [@hmwillett](https://www.epiusers.help/u/hmwillett)\
**Post date:** [August 7, 2023, 5:47pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/10 "2023-08-07T17:47:30Z")

</div>

Session variable.

---

<div class="post-metadata">

**Author:** ![Thameem\_Ansari](https://www.epiusers.help/user_avatar/www.epiusers.help/thameem_ansari/32/58776_2.png) [@Thameem\_Ansari](https://www.epiusers.help/u/Thameem_Ansari)\
**Post date:** [August 7, 2023, 5:56pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/11 "2023-08-07T17:56:11Z")

</div>

I tried like this this… but still value is not getting passed…

“%session.context.initialValueIn.ValueIn.PONum%”

---

<div class="post-metadata">

**Author:** ![hmwillett](https://www.epiusers.help/user_avatar/www.epiusers.help/hmwillett/32/93207_2.png) [@hmwillett](https://www.epiusers.help/u/hmwillett)\
**Post date:** [August 7, 2023, 6:32pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/12 "2023-08-07T18:32:35Z")

</div>

```auto
{
    "options" {
        "contextValue": {
            "PONum": "{POHeader.PONum}"
        }
    }
}

```

`%session.context.initalValueIn.contextValue.PONum%`

---

<div class="post-metadata">

**Author:** ![Thameem\_Ansari](https://www.epiusers.help/user_avatar/www.epiusers.help/thameem_ansari/32/58776_2.png) [@Thameem\_Ansari](https://www.epiusers.help/u/Thameem_Ansari)\
**Post date:** [August 7, 2023, 6:57pm UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/13 "2023-08-07T18:57:40Z")

</div>

issue got resolved… thanks for your continuous support.

---

<div class="post-metadata">

**Author:** ![Angga\_Firmansyah](https://www.epiusers.help/user_avatar/www.epiusers.help/angga_firmansyah/32/91170_2.png) [@Angga\_Firmansyah](https://www.epiusers.help/u/Angga_Firmansyah)\
**Post date:** [December 15, 2025, 5:41am UTC](https://www.epiusers.help/t/how-to-call-baq-report-from-epicor-main-screen-and-pass-the-value/105756/14 "2025-12-15T05:41:12Z")

</div>

> [@hmwillett](#):
>
> ```auto
> "contextValue": {
> "PONum": "{POHeader.PONum}"
> }
> 
> ```

Hi, @hmwillett Would you help me? i’m stuck and newbie in epicor.  
**Launch APP:**

 ![image](https://www.epiusers.help/uploads/default/original/3X/4/b/4bb64d1bdc3fdbd4017889a991788df7ed74db7e.png)

**Receiving APP:**

 ![image](https://www.epiusers.help/uploads/default/original/3X/1/f/1fc2378009a934769f2197aea548d914ddf82f08.png)

but when click button print, parameter invoice num in report option not updated

 ![image](https://www.epiusers.help/uploads/default/original/3X/c/2/c232b72a7154bd458d5b772758543a4ba7625d9b.png)
