Skip to Content
Technical Articles
Author's profile photo SHAMEER THAJUDEEN

Rule to fetch homeaddress data in document generation

Document generation based on different address types

We maintain different types of addresses in Employee central.Customers may be interested in fetching  data based on address types in document generation. Its not possible to achieve this via direct mapping.We have to use business rules for the same.

Requirement

To generate a document containing Address 1, Address2 and City of type home and business.

  1. Home Address 1
  2. Home Address 2
  3. City
  4. Business Address 1
  5. Business Address 1
  6. City
  • we have to create 3 different rules and 3 place holders to populate address 1 , address 2 and city for home address
  • Same is the case to generate different address fields  of type business.
  • Only 1 set statement can be added in the rule.
  • Highlighted values in below screenshot should be exactly same.Its case sensitive too

Below screenshot is a sample rule to fetch address line 2 from home address portlet.

Business Rule

 

 

Try this rule in your system and let me know your comments.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.