Difference between revisions of "Example KB Article"

m (Reverted edits by GopalBhandari (talk) to last revision by David Bingham)
 
Line 2: Line 2:
 
__FORCETOC__
 
__FORCETOC__
 
<div class="col-md-12 ibox-content">
 
<div class="col-md-12 ibox-content">
=Zmsoap create contact and contact group through CLI=  
+
=Main KB Heading=  
 
<hr>
 
<hr>
{{KB|{{WIP}}|{{ZCS 8.8}}||||}}  
+
{{KB|{{ZC}}|{{ZCS 8.8}}||||}}  
 
+
{{WIP}} 
  
  
 
====Problem====
 
====Problem====
Create contact and contact group through CLI. Add local contact and GAL contact in contact group:
+
Enter problem description here. This article is to show the basic formatting of KB articles.
  
 
====Solution====
 
====Solution====
1) Create a local contact through the Zmsoap command.
+
Enter all steps with description here
  
Create the SOAP XML as per Zimbra SOAP API /tmp/createcontact.xml and add the following line into this file and save.
+
=====Step 1=====
 +
* We now have details of the first step needed
 +
* The second step requires the following command:
 +
zmprov run a command
 +
* You can indent the command code by prefixing it with <code>*:</code> (to match the <code>*</code> of the bullet) and wrapping it in <code><nowiki><pre>..</pre></nowiki></code>
 +
*:<pre>zmprov run a command</pre>
 +
* This now has a <br /> line break, with the same spacing
 +
** Another step
  
<CreateContactRequest xmlns="urn:zimbraMail">
+
=====Step 2=====  
<cn l="7">
+
# This is a numbered list
<a n="firstName">Test</a>
+
# The second step is here
<a n="lastName">Test</a>
+
## This is a nested step
  <a n="homeStreet">Test street</a>
+
## Over here as well
<a n="mobilePhone">8000062359</a>
+
# The original list then continues
<a n="fullName">Test, Test</a>
 
<a n="email">test@gmail.com</a>
 
</cn>
 
</CreateContactRequest>
 
  
Run the below command to create local contact:
+
: This is an indent
$zmsoap -v -z -m user@domain.com -f /tmp/createcontact.xml
+
:: This is a double indent
+
This [https://www.mediawiki.org/wiki/Help:Formatting external link] contains more information about formatting.  
2) Create a contact group through Zmsoap.
 
  
Create the SOAP XML as per Zimbra SOAP API /tmp/createcontact_group.xml and add the following line into this file and save.
+
{{SubmittedBy|Author name}}
  
<CreateContactRequest xmlns="urn:zimbraMail">
+
{{Article Footer|ZCS 8.8|2020-04-13}}
<cn l="7">
 
<a n="fileAs">8:testgroup</a>
 
<a n="nickname">testgroup</a>
 
<a n="type">group</a>
 
<a n="fullName">testgroup</a>
 
</cn>
 
</CreateContactRequest>
 
 
 
Run the below command to create a contact group:
 
$zmsoap -v -z -m user@domain.com -f /tmp/createcontact.xml
 
 
 
3) Add the local contact in contact group.
 
$zmsoap -v -z -m user@domain.com ModifyContactRequest/cn @id=group_id m/@op="+" @type="C" @value="contact_id"
 
 
 
Here "group_id" is contact group ID and "contact_id" is the local contact ID.
 
 
 
4) Add the GAL contact in contact group.
 
$zmsoap -v -z -m test2@domain.com ModifyContactRequest/cn @id=group_id m/@op="+" @type="G" @value="uid=Gopal,ou=people,dc=domain,dc=com"
 
 
 
Here "group_id" is a contact group ID and "uid=Gopal,ou=people,dc=domain,dc=com" GAL contact we want to add in the contact group.
 
 
 
{{SubmittedBy|Gopal Singh Bhandari}}
 
 
 
{{Article Footer|ZCS 8.8|2020-07-10}}
 

Latest revision as of 07:27, 10 July 2020

Main KB Heading


   KB 23699        Last updated on 2020-07-10  




0.00
(0 votes)


Problem

Enter problem description here. This article is to show the basic formatting of KB articles.

Solution

Enter all steps with description here

Step 1
  • We now have details of the first step needed
  • The second step requires the following command:
zmprov run a command
  • You can indent the command code by prefixing it with *: (to match the * of the bullet) and wrapping it in <pre>..</pre>
    zmprov run a command
  • This now has a
    line break, with the same spacing
    • Another step
Step 2
  1. This is a numbered list
  2. The second step is here
    1. This is a nested step
    2. Over here as well
  3. The original list then continues
This is an indent
This is a double indent

This external link contains more information about formatting.

Submitted by: Author name
Verified Against: ZCS 8.8 Date Created: 2020-04-13
Article ID: https://wiki.zimbra.com/index.php?title=Example_KB_Article Date Modified: 2020-07-10



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search