Skip to Content
Author's profile photo Former Member

How to add extension fields to standard queries [C4C ONLY]

1. Create your fields on the business object extension.

     fields_with_no_tags.JPG


2. Create a “Process Extension Scenario”, and check the “Query” services.

     pes.JPG


3. Add the “Scenario” tag to your fields.

     fields_with_tags.JPG

Result: you can now query using your extension fields as parameters via ABSL or UI Designer.

absl_fields.JPG

ui_designer.JPG

Assigned Tags

      16 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta

      Fantastic! So now I can create a Custom Query for Customer/Account with a indicator from a Custom BO??

      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta

      Can I use SADL Query in UI Designer for the above thing! because we need SADL query for Basic filter

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      You don't need to do it. All extension fields are available by default on a SADL query. If you create a SADL query for Opportunity in my example, you wouldn't need the PES file.

      Make sense?

      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta

      Yes, Sorry my mistake. it is an extension BO. Now the issue I want to filter out Accounts if that indicator is Checked / ticked from Standard Screen of Account OWL is it feasible via above steps?

      For example : I have an indicator isBuilding. Hence I know that that customer is NOT an accoutn but a Building so dont want it to be appear in Account OWL.

      I hope i am clear sorry for my mistake 🙂

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      You can add the field to the find forms and filter manually:

      account_find_forms.JPG

      🙂

      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta

      what if i dont want user to display the paramater i want that field should be by default selected when firing query...

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      I don't think this is possible. I'd be surprised (and happy) in case it is.

      Sorry! 🙁

      Fernando

      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta

      yes even i think it is not possible i tried for few days then i left 😀 bt it was very important for customers so we used saved searches 🙁

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      You can basically add your extension fields to standard queries.. no custom BO involved here. For custom BOs you can create your own queries.

      Author's profile photo Fred K
      Fred K

      Hi  Fernando,

           I cannot find any Query service in Sales Order when I create a process extension scenario. I want to add my extension field to SalesOrder.QueryByElements.

      I find Sales-General Information (Service name QuerySalesOrderIn).

      I checked it in my process extension scenario. But I cannot find my extension field in Sales Order's QueryByElements and I cannot query with my extension field.

      Best Regards

      Fred

      Author's profile photo Horst Schaude
      Horst Schaude

      Hello Fred,

      I've checked in our systems here and unfortuately Fernando`s suggestion works only in C4C, but not in ByD. 🙁

      But you may use this approach.

      Sorry,

           Horst

      Author's profile photo Fred K
      Fred K

      Hi Horst,

      Thanks for the suggestion but I want to use the query in PDI.

      Best Regards

      Fred

      Author's profile photo Horst Schaude
      Horst Schaude

      Hello Fred,

      The query extension parameters are part of the backend query.

      But of course only for the BO which is directly used in the UI.

      In many cases this is an Enhanced Controller BO (ECO), which does not help you as those ECOs are never PSM released. 🙁

      Sorry,

          Horst

      Author's profile photo Jacques-Antoine Ollier
      Jacques-Antoine Ollier

      Nice blog! Very useful to know.

      Just a little remark.

      When you already have your Process extension Scenarion created and assigned to your extension field, do not forget to activate your extension field again to make the changes to your PES effective.

      Have a great one everybody.

      Best regards.

      Jacques-Antoine Ollier

      Author's profile photo Former Member
      Former Member

      gracias por tu ayuda, necesito extender un Lead, es decir, debo agregar dos campos, podrias brindarme algo de tus conocimientos?

      Saludos,

      Author's profile photo Gaurav Goel
      Gaurav Goel

      Hi ,

      I have been able to extend query for standard Customer BO and added 2 fields successfully. I can use them in my query as parameter. but I have an issue, when I try to read these fields as result. result do not acknowledge them. any help or pointer would be much appreciated.